#include "aa.h"

#include <stdio.h>
void aa_print (const struct aa* aa) {

  printf("{%c # %d at: %d,%d,%d orientation: %d,%d,%d}\n", aa->type, aa->serial,
	 aa->x_pos, aa->y_pos, aa->z_pos,
	 aa->x_dir, aa->y_dir, aa->z_dir);
  
}

void aa_init (struct aa* aa, const struct atom* alphaCarbon, const struct atom* orientationPoint) {
  aa->x_pos = alphaCarbon->x;
  aa->y_pos = alphaCarbon->y;
  aa->z_pos = alphaCarbon->z;
  aa->x_dir = orientationPoint->x;
  aa->y_dir = orientationPoint->y;
  aa->z_dir = orientationPoint->z;
  aa->type  = alphaCarbon->residue_type;
  aa->serial= alphaCarbon->residue;
}

